using System;
using System.Collections.Generic;
using System.Linq;
using InvestmentIntelligence.DbModel.Models;

namespace InvestmentIntelligence.Data.Repository
{
    public interface IBookSecurityToBenchmarkRepository
    {
        
        /// <summary>
        /// Get all benchmarks for given fund/book.
        /// </summary>
        /// <param name="fundBookId"></param>
        /// <returns></returns>
        IEnumerable<BookSecurityToBenchmark> GetFundBookBenchmarks(int fundBookId);

        /// <summary>
        ///     Saves new entities
        /// </summary>
        /// <param name="iEnumerable">items to save</param>
        void Merge(IEnumerable<BookSecurityToBenchmark> iEnumerable);

        /// <summary>
        ///     Get All Items
        /// </summary>
        /// <returns>BookSecurityToBenchmark list</returns>
        List<T> Get<T>(Func<IQueryable<BookSecurityToBenchmark>, IEnumerable<T>> f);

    }
}